package com.cfy.mybatis.spring;

import com.dubbo.service.api.WeatherService;
import com.dubbo.service.api.mainpk.TodayWeather;
import com.dubbo.service.api.mainpk.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.dubbo.service.api.FooService;

import java.nio.file.WatchService;
import java.util.List;
import java.util.Map;


public class
TestMain {
    public static void main(String[] args) {
//        ApplicationContext acs = new ClassPathXmlApplicationContext("classpath:applicationContext-MFBean.xml");
//        FooService fs = (FooService)acs.getBean("fooService");
//        User you = fs.doSomeBusinessStuff("ui");
//        System.out.println(you);

        ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext-MFBean.xml");
        WeatherService ws = (WeatherService)ac.getBean("weatherService");
        List<TodayWeather> tw = ws.getAllWeather();
        System.out.println(tw);
    }
}
